<?php
/**
 * Created by PhpStorm.
 * User: yu
 * Date: 2017/8/6
 * Time: 上午10:44
 */

namespace app\test\controller;
use think\Request;

class Test
{
	public function hello($id,$name){
		$id = Request::instance()->param('id');
		$name = Request::instance()->param('name');
//		$age = Request::instance()->param('age');
		echo $id;
		echo "<hr>";
		echo $name;

		$all = Request::instance()->param();
		var_dump($all);
		return "hello";

	}

	public function req(Request $request){
		$all = $request->param();
		var_dump($all);
	}
}